/*
 * MIT License
 *
 * Copyright (c) 2020 Mr.css
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package cn.seaboot.postman.root;

//   E.G.:
//  "info": {
//      "_postman_id": "6b79f6c1-71e4-4b96-8184-54b7e0cc87b4",
//      "name": "接口文档",
//      "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
//  }

/**
 * postman api info
 *
 * @author Mr.css
 * @date 2020-01-28 10:43
 */
public class Info {
    /**
     * Every collection is identified by the unique value of this field. The value of this field is usually easiest to generate using a
     * UID generator function. If you already have a collection, it is recommended that you maintain the same id since changing the id
     * usually implies that is a different collection than it was originally.
     * Note: This field exists for compatibility reasons with Collection Format V1.*
     */
    private String _postman_id;
    /**
     * A collection's friendly name is defined by this field. You would want to set this field to a value that would allow you
     * to easily identify this collection among a bunch of other collections, as such outlining its usage or content.
     */
    private String name;
    /**
     * This should ideally hold a link to the Postman schema that is used to validate this collection.
     * E.g: https://schema.getpostman.com/collection/v1
     */
    private String schema;

    /**
     * Description can have versions associated with it, which should be put in this property.
     */
    private String version;

    public String get_postman_id() {
        return _postman_id;
    }

    public void set_postman_id(String _postman_id) {
        this._postman_id = _postman_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Info{" +
                "_postman_id='" + _postman_id + '\'' +
                ", name='" + name + '\'' +
                ", schema='" + schema + '\'' +
                ", version='" + version + '\'' +
                '}';
    }
}
